package ModelLayer;


/**
 * Write a description of class RentalContract here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class RentalContract
{
    static int runningRentalContractId;
    private int id;
    private String date;
    private String periode;
    private String status;
    private Sample sample;
    public RentalContract(int _id, String _date, String _periode, String _status)
    {
        runningRentalContractId++;
        id = runningRentalContractId;
        date = _date;
        periode = _periode;
        status = _status;
    }
    
    public int getId()
    {
        return id;
    }
    public void setDate(String _date)
    {
        date = _date;
    }
    public String getDate()
    {
        return date;
    }
    public void setPeriode(String _periode)
    {
        periode = _periode;
    }
    public String getPeriode()
    {
        return periode;
    }
    public void setStatus(String _status)
    {
        status = _status;
    }
    public String getStatus()
    {
        return status;
    }
    public void setSample(Sample _sample)
    {
        sample = _sample;
    }
    public Sample getSample()
    {
        return sample;
    }
}
